package com.light.gulimall.cart.feign;

import com.light.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;

/**
 * 远程调用product模块
 */
@FeignClient(name = "gulimall-product")
public interface ProductRemoteServiceClient {

    /**
     * 查询sku详情
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);



    /**
     * 查询sku销售属性信息
     */
    @RequestMapping("/product/skusaleattrvalue/infoList/{id}")
    R infoList(@PathVariable("id") Long id);


    @RequestMapping("/product/skuinfo/getPrice/{skuId}")
     BigDecimal getPrice(@PathVariable("skuId") Long skuId);

}
